package com.wutuo.wtservice.provider.component;

import cn.apestar.base.SpringContextHolder;
import com.wutuo.wtservice.provider.service.WtTypeService;

import java.util.List;

public class ServiceDataConvert {

    private static WtTypeService wtTypeService = SpringContextHolder.getBean(WtTypeService.class);

    // 翻译
    public static <T> void convertToServiceResponseList(List<T> list) {

        wtTypeService.getWtTypeByIds(list, "type", "typeImage");
        // CommonUtil.sortAsc(list, "getSort");


    }
}
